home *** CD-ROM | disk | FTP | other *** search
- PATHINC Release 1.00 (01/92)
-
- Function - Adds or drops (PATH INCludes) directory names
- from the path environment variable.
-
- Purpose - For Use in Batch files or directly from the command line.
- Will not increase the path if already defined previously.
- PATHINC can place new name near the front of path for speed.
-
- Usefulness- Long path names slow down procedures and repeated "set path=..."
- statements in batch files could make the path name longer and
- longer. This quick utility may encourage users to adjust
- the path names more often or to juggle to what is appropriate
- for the currently running application. Unlike environment
- editing routines PATHINC works just as well from batch files
- as from the DOS command line. You may want to rename
- PATHINC.com to something shorter if you use it often (i.e. PI),
- then put it in a directory which is included in your path.
-
- I have searched for years and tested dozens of path editing
- and alterating utilities, but none ever did exactly what I
- think such a utility should do. Many do not have the right
- feedback either. So I ended up writing this one myself.
-
- If you run 4DOS then delete the pathinc.com so it will use
- the more complex (and less syntax checking) pathinc.exe.
- Pathinc.exe will work for both DOS 5.0 and 4DOS, but
- pathinc.com is preferable for monogamous DOS 5.0 setups.
-
- Syntax - PATHINC [-] [d:][\][path] [position to place in current path]
-
- Examples - pathinc c:\tools
- pathinc c:\tools 2 >nul (typical with arguments in batch files)
- pathinc .. * (places parent directory at end of path)
- pathinc /h (brief help)
- pathinc (no arguments prompt for a path name)
-
- pathinc - c:\tools (eliminates tools directory)
- pathinc - . (eliminates current directory)
- pathinc - 2 (eliminates 2nd name)
- pathinc - (prompts again for path name to exclude)
-
- These programs were updated for DOS 5.0, but may run on lower versions too.
- 4DOS must be version 4 or higher if used in conjunction with DOS 5.0
-
- Contributions and suggestions for enhancements gratefully
- accepted. Fee for commercial use $6 (see address below).
- Not to be sold for profit.
-
- (c) 1992 Tony Tschanz
- 5549 SW Campbell Pl.
- Seattle, Wa 98116